package com.dkm.orproject;


import com.dkm.orproject.dkmoa.dao.OaPersonnelMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class ClearThread {
    @Resource
    OaPersonnelMapper oaPersonnelMapper;


    /**
     * 每日凌晨0点执行
     */
//   @Scheduled(cron = "*/5 * * * * ?")
    @Scheduled(cron = "0 0 0 * * ?")
    public void printDate(){
        oaPersonnelMapper.dimissionPersonnel();
    }

}
